import http from "../utils/http";

/**
 * @description 授权登录
 * @param {*} code 临时登录凭证code
 * @returns Promise
 */
export const reqLogin = (code) => {
  return http.get(`/weixin/wxLogin/${code}`);
};
export const reqUserInfo = () => {
  return http.get(`/weixin/getuserInfo`);
};

export const reqUploadFile = (filePath, name) => {
  return http.upload("/fileUpload", filePath, name);
};

export const reqUpdateUserInfo =( userInfo )=>{
  return http.post('/weixin/updateUser',userInfo)
}
